<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function m1(){}
			var p=new m1();
			console.log(p);
			p.name='rose';
			console.log(p);
			p.age=20;
			console.log(p);
			
			p.tostring=function m1(){
				alert(this.name)
			}
			
			
			
			
			
			p.run=function m1(){
				alert(this.name+':'+this.age);
				}
			p.stat=function m1(){
				if(confirm('开车啦~~~~~')){
					alert('撞车啦~~~~')
				}else alert('停车啦~~')
				
			}
			function m(){
				console.log(Math.random()*10);
				let a=[1,2,8,4,3];
				console.log(a.toString())
				console.log(a.sort())
				if(window.confirm()){
					m();
				}
				
				}
		</script>
	</head>
	<body>
		<button type="button" onclick="p.tostring()" style="height: 30px;">启动兰博基尼</button>
	</body>
</html>
